package tpanalisis.main.java;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.border.EmptyBorder;

public class CodeWindow extends JFrame {

	private static final long serialVersionUID = 1402823066088770812L;
	private JPanel contentPane;
	private JTextPane textPane;

	/**
	 * Create the frame.
	 */
	public CodeWindow() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);

		textPane = new JTextPane();
		JScrollPane scrollPane = new JScrollPane(textPane);
		textPane.setEditable(false);
		textPane.setAutoscrolls(true);
		contentPane.add(scrollPane, BorderLayout.CENTER);
		this.setVisible(true);
	}

	public JPanel getContentPane() {
		return contentPane;
	}

	public JTextPane getTextPane() {
		return textPane;
	}
}
